import React, { Component } from 'react'; // 快捷键是imrc

let withRouter = (WrapComponet)=>{ // 封装一个withRouter组件
    console.log(WrapComponet)
     return class extends Component {
          render(){
              return <WrapComponet send={this.props.send} routProps = {window.routerProps}></WrapComponet>
          }
     }
}
export default withRouter